<!DOCTYPE html>
<html lang="">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>

<body>
    <ul id="myUl"></ul>

    <script>
        let arr = ["春天", "夏天", "秋天", "冬天"];
        let myUl =document.getElementById("myUl");
        for(var i=0 ;i<arr.length ; i++){
            //创建了一个虚拟的li
            let theLi = document.createElement("li");
            theLi.innerHTML= arr[i];
            myUl.appendChild(theLi);
        }

    </script>
</body>

</html>